<?php
namespace app\Services\admin;


use yii;
use app\models\Country;
use app\models\Steaming;
use yii\db\Expression;
use app\Services\ApiService;


class CountryService extends ApiService
{

    /**
     * @return Service_Pay
     */
    public static function getInstance()
    {
        return parent::getInstance();
    }

    /**
     * 获取地区列表
     */
    public function getCountryList(){
        $list = Country::find()
            ->select('ID,name')
            ->where(['level'=>2])
            ->asArray()
            ->all();
        return ['code'=>200,'data'=>$list];
    }

}